package com.inspire.springboot.service.imp;

import com.inspire.springboot.service.IJCTest2Service;
import com.inspire.springboot.service.IJCTestService;

public class IJCTestServiceImpl implements IJCTestService {

    @Override
    public void test01() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("123!");
    }

    @Override
    public void test02() {
        Integer[] integers=new Integer[]{1,2,3};
        System.out.println("integers[3] = " + integers[3]);//异常栈测试
    }

    @Override
    public void test03() {
        IJCTest2Service ijcTest2Service=new IJCTest2ServiceImpl();
        ijcTest2Service.fun2();
        for(int i=0;i<2;i++){
            ijcTest2Service.fun3();
        }
    }

    @Override
    public void fun1() {

        IJCTest2Service ijcTest2Service=new IJCTest2ServiceImpl();
        ijcTest2Service.fun2();
        for(int i=0;i<3;i++){
            ijcTest2Service.fun3();
        }
    }

    @Override
    public void test04() {

    }
}
